/* 1videoConference -- An open source video conferencing platform.
* Copyright (C) 2007 - 2008, Adiance Technologies Pvt. Ltd.
*
* Hardik Sanghvi <hardik.sanghvi @adiance.com>
*
* See http://www.1videoconference.org for more information about
* the 1videoConference project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project provides a web site, forums and mailing lists
* for your use.
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
********************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Globalization;

namespace Adiance.VMukti.DAL
{
    public class Database
    {
        DataSet ds = new DataSet();
        public static string conStr = "";

        public Database()
        {
            try
            {
                conStr = System.Configuration.ConfigurationManager.AppSettings["ConnString"].ToString();
                ds.Locale = CultureInfo.InvariantCulture;
            }
            catch (Exception exp)
            {
                //exp.Data.Add("My Key", "Adiance.VMukti.BAL--:--Database.cs--:--Database()--:----:--");
                //Adiance.VMukti.BAL.clsUtility.LogException = exp;
               //System.Windows.MessageBox.Show("Database"+exp.Message);
            }
        }
        public DataSet GetConfig()
        {
            try
            {
                ds = SqlHelper.ExecuteDataset(conStr, "procGetConfig", null);
                return ds;
            }
            catch(Exception exp)
            {
                //exp.Data.Add("My Key", "Adiance.VMukti.BAL--:--Database.cs--:--GetConfig()--:----:--");
                //Adiance.VMukti.BAL.clsUtility.LogException = exp;
                //System.Windows.MessageBox.Show("GetConfig"+exp.Message);
                return new DataSet();
            }
        }
    }
}
